package com.example.thirdstage_project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.thirdstage_project.entity.Expert;
import com.example.thirdstage_project.entity.User;

import java.util.List;


/**
 * 专家信息表(Expert)表服务接口
 *
 * @author makejava
 * @since 2022-11-24 15:19:04
 */
public interface ExpertService extends IService<Expert> {

    List<Expert> selectAll();

    int selectid(int uid);
    /**
     * 更新数据
     * @param expert
     * @return
     */
    boolean update(Expert expert);
    /**
     * 根据expertid删除
     * @param expertid
     * @return
     */
     boolean delete(Integer expertid);
    /**
     * 分页
     */
    IPage<User> getPage(int currentPage, int pageSize);

    int selectuid(int uid);

    boolean updatePassword(String password,int uid);
}

